# num = int(input('输入一个数字:'))
# if num % 2 == 0:
#     print('为偶数')
# else:
#     print('为奇数')
# weight = int(input('请输入体重(范围为0到500公斤之间:'))
# if weight < 40:
#     print('停止减肥')
# elif 40 <= weight < 45:
#     print('每天晨跑30分钟')
# elif 45 <= weight < 50:
#     print('每天健身房1小时')
# elif 50 <= weight < 60:
#     print('每天健身房2小时')
# elif 60 <= weight < 80:
#     print('两餐素食,每天健身房3小时')
# elif weight >= 80:
#     print('爱咋咋地吧,你开心就好!')
# num = 1
# while num <= 10:
#     print('Hello Python',end = '')
# #     num += 1
# num = 10
# while 10 <= num <= 20:
#     print(num)
#     num += 1
# num = True
# while num:
# #     print(num)
# num = int(input('输入一个数字:'))
# while True:
#     if num == 110:
#         print('exit')
#         break
# count = 0
# # 循环
# while count < 10:
#     print('Hellow Python',end=' ')  # 输出
# #     count += 1  # 记数
# n1 = int(input('输入第一条边为:'))
# n2 = int(input('输入第二条边为:'))
# n3 = int(input('输入第三条边为:'))
# if ((n1 + n2) > n3) and ((n3 + n2) > n1) and ((n1 + n3) > n2):
#     if n1 == n2 == n3:
#         print('等边三角形')
#     elif n1 == n2 or n2 == n3 or n1 == n3:
#         print('等腰三角形')
#     else:
#         print('普通三角形')
# else:
#     print('不是三角形')
# 导 包
# import random
# # 获取方法,设置参数
# pc_num = random.randint(1, 3)
# user = int(input('请出拳(数字1:石头,数字2:剪刀,数字3:布):'))
# if user == 1 or user== 2 or user==3:
#     if user == pc_num:
#         if pc_num == 1:
#             print('电脑:石头')
#         elif pc_num == 2:
#             print('电脑:剪刀')
#         else:
#             print('电脑:布')
#         print('呵,你奈我何o(´^｀)o')
#     elif user == 1 and pc_num == 2 or user == 2 and pc_num == 3 or \
#             user == 3 and pc_num == 1:
#         if pc_num == 1:
#             print('电脑:石头')
#         elif pc_num == 2:
#             print('电脑:剪刀')
#         else:
#             print('电脑:布')
#         print("你个小辣鸡ψ(*｀ー´)ψ")
#     else:
#         if pc_num == 1:
#             print('电脑:石头')
#         elif pc_num == 2:
#             print('电脑:剪刀')
#         else:
#             print('电脑:布')
#         print('别得意,下次弄死你(•́へ•́╬)')
# else:
# #     print('老实点别想作弊')
# import rando
import random
import random
computer = random.randint(0,10)
num = 1
while True:
    player = int(input('输入一个数:'))
    if player > computer:
        print('猜大了')
    elif player < computer:
        print('猜小了')
    else:
        print(f'猜对了,猜了{num}次')
        break
    num += 1
